
<script id="info" type="text/html">
<!-- 标题 -->
<div data-id="article-title" class="col-xs-12 col-sm-12 col-md-12">
	{{if title}}{{title}}{{/if}}
</div>
<!-- 内容 -->
<div data-id="article-source" class="col-xs-12 col-sm-12 col-md-12" style="margin-bottom: 10px;">
	<span style="float: left"><em style="font-weight: bold; font-style: normal;">浏览量：</em>{{if views}}{{views}}{{/if}}</span>
	<span style="float: right"><em style="font-weight: bold; font-style: normal;">发布时间：</em>{{if createTime}}{{createTime}}{{/if}}</span>
</div>
<div data-id="article-content" class="col-xs-12 col-sm-12 col-md-12" data-content="{{if content}}{{content}}{{/if}}">	
</div>
</script>

<script type="text/javascript">
template.helper("dateformation", function(str){
	if(str.indexOf("-")){
		str = str.substr(str.indexOf("-")+1);
		if(str.lastIndexOf(":")){
			str = str.substr(0, str.lastIndexOf(":"));
		}
	}
	return str;
});
vjs.load(function(){
	var content = $("[data-id='article-content']").attr("data-content");
	if(content){
		$("[data-id='article-content']").html(content);
	}
});
</script>



